package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.UserQuestionHistoryDao;
import com.suke.czx.modules.examstack.exam.entity.UserQuestionHistoryEntity;
import com.suke.czx.modules.examstack.exam.service.UserQuestionHistoryService;



@Service("userQuestionHistoryService")
public class UserQuestionHistoryServiceImpl implements UserQuestionHistoryService {
	@Autowired
	private UserQuestionHistoryDao userQuestionHistoryDao;
	
	@Override
	public UserQuestionHistoryEntity queryObject(Integer questionId){
		return userQuestionHistoryDao.queryObject(questionId);
	}
	
	@Override
	public List<UserQuestionHistoryEntity> queryList(Map<String, Object> map){
		return userQuestionHistoryDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userQuestionHistoryDao.queryTotal(map);
	}
	
	@Override
	public void save(UserQuestionHistoryEntity userQuestionHistory){
		userQuestionHistoryDao.save(userQuestionHistory);
	}
	
	@Override
	public void update(UserQuestionHistoryEntity userQuestionHistory){
		userQuestionHistoryDao.update(userQuestionHistory);
	}
	
	@Override
	public void delete(Integer questionId){
		userQuestionHistoryDao.delete(questionId);
	}
	
	@Override
	public void deleteBatch(Integer[] questionIds){
		userQuestionHistoryDao.deleteBatch(questionIds);
	}
	
}
